{% extends 'layout.html' %}
{% load static %}

{% block content %}
	<div class="container">
		<div class="panel panel-default">
			<div class="panel-heading">
				<h2 class="panel-title" style="color: #0228e7"> 添加用户 </h2>
			</div>
			<div class="panel-body">
				<form method="post" novalidate>
					{% csrf_token %}

					{% for field in form %}
						<div class="form-group">
							<label>{{ field.label }}</label>
							{{ field }}
							{#<input type="text" class="form-control" placeholder="入职时间" name="ctime">#}
							<span style="color: red">
								{{ field.errors.0 }}
							</span>
						</div>
					{% endfor %}


					<button type="submit" class="btn btn-primary">提 交</button>
				</form>
			</div>
		</div>
	</div>
{% endblock %}

{% block css %}
	<link rel="stylesheet" href="{% static 'plugins/bootstrap-3.4.1/dist/css/bootstrap-datepicker.min.css' %}">
{% endblock %}


{% block js %}
	<script src="{% static '/plugins/bootstrap-3.4.1/dist/js/bootstrap-datepicker.js' %}"></script>
	<script src="{% static '/plugins/bootstrap-3.4.1/dist/js/bootstrap-datepicker.zh-CN.min.js' %}"></script>
	<script>
        $(function () {
            $('#id_creat_time').datepicker({
                format: 'yyyy-mm-dd',
                startDate: '2010-01-01',
                language: 'zh-CN',
                autoclose: true
            });
        })
	</script>
{% endblock %}
